<?php
use yii\helpers\Html;
?>
<?php $this->beginPage() ?>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?= Yii::$app->language ?>" />
<meta content="width=device-width, initial-scale=1,maximum-scale=1.0,user-scalable=no" name="viewport"/>
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<meta name="keyword" content="<?php if(isset($this->blocks['keywords'])){ echo $this->blocks['keywords'];}else{ echo '游戏, 二狐, 琵琶网';}?>" />
<meta name="description" content="<?php if(isset($this->blocks['description'])){ echo $this->blocks['description'];}else{echo '二狐网,手机网游下载,手机网游新闻';}?>" />
<?= Html::csrfMetaTags() ?>
<title><?php if(isset($this->blocks['title'])):;?><?=$this->blocks['title'];?><?php else:?>二狐手游网<?php endif;?></title>
<link rel="stylesheet" type="text/css" href="<?= \Yii::$app->request->baseUrl;?>/css/erhu_phone.css" />
<script type="text/javascript" src="<?= \Yii::$app->request->baseUrl;?>/js/jquery.js"></script>
<script type="text/javascript" src="<?= \Yii::$app->request->baseUrl;?>/js/erhu_phone.js"></script>
</head>

<body>
<?php $this->beginBody() ?>
<!--头部-->
<header class="head">
      <div class="logo"><a href="<?=Yii::$app->urlManager->createUrl('/');?>"><img src="<?= \Yii::$app->request->baseUrl;?>/img/logo.jpg" /></a></div>
      <div class="search_left"><p></p><input type="text" name="search_key" class="search_tx" /></div>
      <div class="search_right"><input type="submit" class="search_bt" name="search_btn" value="" /></div>
</header>

<!--导航-->
<nav>
  <ul class="main_nav me_shadow">
     <li<?php if(in_array(Yii::$app->request->pathInfo,[''])):?> class="hover"<?php endif;?>><a href="<?=Yii::$app->urlManager->createUrl('/');?>">首页</a></li>
     <li<?php if(!in_array(Yii::$app->request->pathInfo,[''])):?> class="hover"<?php endif;?>><a href="<?=Yii::$app->urlManager->createUrl('/game/index');?>">游戏</a></li>
     <li><a href="<?=Yii::$app->urlManager->createUrl('/user/center');?>">个人</a></li>
     <li><a href="<?=Yii::$app->urlManager->createUrl('/user/payment');?>">充值</a></li>
     <li><a href="<?=Yii::$app->urlManager->createUrl('/user/help');?>">客服</a></li>
   </ul>
</nav>
<?= $content ?>
<!--底部导航-->
<nav>
  <ul class="main_nav bottom_nav">
     <li<?php if(in_array(Yii::$app->request->pathInfo,[''])):?> class="hover"<?php endif;?>><a href="<?=Yii::$app->urlManager->createUrl('/');?>">首页</a></li>
     <li<?php if(!in_array(Yii::$app->request->pathInfo,[''])):?> class="hover"<?php endif;?>><a href="<?=Yii::$app->urlManager->createUrl('/game/index');?>">游戏</a></li>
     <!-- <li><a href="http://passport.92fox.com/m/site/">个人</a></li> -->
     <li><a href="<?=Yii::$app->urlManager->createUrl('/user/center');?>">个人</a></li>
     <li><a href="<?=Yii::$app->urlManager->createUrl('/user/payment');?>">充值</a></li>
     <li><a href="<?=Yii::$app->urlManager->createUrl('/user/help');?>">客服</a></li>
  </ul>
</nav>
<!--底部-->
<footer class="footer"><p>
    <a href="<?=Yii::$app->urlManager->createUrl('/about/about');?>">关于我们</a>|
    <a href="<?=Yii::$app->urlManager->createUrl('/about/contact');?>">联系我们</a>|
    <?php if(!is_null(Yii::$app->session['userid'])):?><a href="<?=Yii::$app->urlManager->createUrl('/user/logout');?>">退出</a><?else:?><a href="<?=Yii::$app->urlManager->createUrl('/user/login');?>">登录</a>|<a href="<?=Yii::$app->urlManager->createUrl('/user/register');?>">注册</a><? endif;?><br>闽ICP备15001830号-3 <br/>闽网文【2013】0852-031号</p></footer>
<!--返回顶部-->
<div class="backtop">返回顶部</div>
<form action="<?=Yii::$app->urlManager->createUrl('/search/game');?>" id="search_form" method="post">
<input type="hidden" name="search_keyword" value="" />
<input type="hidden" name="_csrf" id="_csrf" value="<?=\Yii::$app->request->csrfToken; ?>" />
</form>

<script type="text/javascript">
//点击搜索
//ajax请求数据
$("input[name='search_btn']").click(function(){
	$("input[name='search_keyword']").val($("input[name='search_key']").val());
	$("#search_form").submit();
});
</script>
<?php if(isset($this->blocks['script'])):;?><?=$this->blocks['script'];?><?php else:?><?php endif;?>
<?php require_once './cs.php';echo '<img src="'._cnzzTrackPageView(1256424674).'" width="0" height="0"/>';?>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
